package com.uduew.sjd.api;

import static com.uduew.sjd.config.Const.LOGIN;

import androidx.annotation.NonNull;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestBodyStrategy;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.RequestBodyType;


public class LoginApi implements IRequestApi, IRequestType {
    private String unparallel;
    private String minuteman;
    private String biopsy;
    private String sjaa;

    public LoginApi(String unparallel, String minuteman, String biopsy, String sjaa) {
        this.unparallel = unparallel;
        this.minuteman = minuteman;
        this.biopsy = biopsy;
        this.sjaa = sjaa;
    }

    @NonNull
    @Override
    public String getApi() {
        return LOGIN;
    }

    /**
     * 获取参数的提交类型
     */
    @NonNull
    @Override
    public IRequestBodyStrategy getBodyType() {
        return RequestBodyType.JSON;
    }
}
